package com.yqg.education.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.yqg.education.controller.dto.FileDTO;
import lombok.Getter;
import lombok.Setter;

/**
 * teach_plan 实体类
 *
 * @author 张芸博
 * @since 2025-04-10
 */
@Getter
@Setter
@TableName("teach_plan")
public class TeachPlan implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 课程ID
     */
    private Long courseId;

    /**
     * 文件名称
     */
    private String name;

    /**
     * 下载链接
     */
    private String url;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    /**
     * 是否删除
     */
    private Integer isDelete;

    /**
     * 课程名称
     */
    @TableField(exist = false)
    private String courseName;
    /**
     * 是否查看
     */
    @TableField(exist = false)
    private Integer flow;
}
